<template>
  <simple-layout title="现金认购释放">
    <div class="content">
      <div class="time-lists">
        <div style="display: flex;justify-content: space-between;">
          <div class="money-name">待释放NGT</div>
          <div class="money">0</div>
        </div>
      </div>
      <div class="time-lists">
        <div style="display: flex;justify-content: space-between;">
          <div class="money-name">总释放天数</div>
          <div class="money">365天</div>
        </div>
      </div>
      <div>
       <van-button type="default" @click="releaseLog()">释放记录</van-button></div>
    </div>
  </simple-layout>
</template>

<script>
  import SimpleLayout from "../../components/SimpleLayout";
  import PayService from '../../service/pay';

  export default {
    name: "Login",
    components: {
      //someComponent
      SimpleLayout
    },
    props: {},
    data() {
      return {
        msg: "Hello Vue.js",
        transferfilter:{
          pageSize:10,
          pageNum:1
        },
        transferList:[]
      };
    },
    computed: {},
    watch: {},
    mounted: function() {
      this.getProductList()
    },
    methods: {
      getProductList(){
        PayService.transferList(this.transferfilter).then(res=>{
          if(res.status == 200){
            this.transferList = this.transferList.concat(res.resultData.list);
            console.log(this.transferList)
          }
        })
      },
      releaseLog () {
        this.$router.push({ name: 'AHistory', params: { userId: 'cash' }})
       }
    }
  };
</script>


<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.content {
  height: 100vh;
  background-color: #f3f4f6;
}
.time-lists {
  padding: 0 10px 10px 10px;
  color: #999;
  background-color: #fff;
}

div.time-lists {
  border-top: 1px solid rgba(153, 153, 153, 0.5);
  height: 48px;line-height: 48px;
}

.time-title {
  border-bottom: 1px solid rgba(153, 153, 153, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.time-title + div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  line-height: 2;
}

.money-title{
  text-align: left;
}

.money-name {
  color: #7681AE;
  font-size: 16px;
  font-weight: bold;
}

.money {
  color: #333;
  font-size: 16px;
  font-weight: bold;
}

.out {
  color: red;
  font-size: 16px;
  font-weight: bold;
}

.in {
  color: #3885FF;
  font-size: 16px;
  font-weight: bold;
}

button {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 13%;
  width: 80%;
  border-radius: 30px;
  background: -webkit-linear-gradient(to right, #696BE2, #7B7FEE, #8E93F9); /* Safari 5.1 - 6.0 */
  background: -moz-linear-gradient(to right, #696BE2, #7B7FEE, #8E93F9); /* Firefox 3.6 - 15 */
  background: linear-gradient(to right, #696BE2, #7B7FEE, #8E93F9); /* 标准的语法 */
  color: #fff;
  height: 52px;
  font-size: 18px;
}
</style>
